﻿using FSM.IBll;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
using Util.Excel;

namespace FSM.Bll
{
    public class DLRegister
    {
        public static void Regist(IServiceCollection service)
        {
            service.AddTransient<ISysUserBll, SysUserBll>();
            service.AddTransient<ISysRoleBll, SysRoleBll>();
            service.AddTransient<ISysMenuBll, SysMenuBll>();
            service.AddTransient<ISysActionBll, SysActionBll>();
            service.AddTransient<ISysIconBll, SysIconBll>();
            service.AddTransient<ITablesBll, TablesBll>();
            service.AddTransient<IRelMenuActionBll, RelMenuActionBll>();
            service.AddTransient<IRelRoleMenuBll, RelRoleMenuBll>();
            service.AddTransient<IRelRoleMenuActionBll, RelRoleMenuActionBll>();
            service.AddTransient<IRelUserRoleBll, RelUserRoleBll>();
            service.AddTransient<ISysSettingBll, SysSettingBll>();
            service.AddTransient<ISysParamBll, SysParamBll>();
            service.AddTransient<ISysParamSubBll, SysParamSubBll>();
            service.AddTransient<ISysCodeBll, SysCodeBll>();
            service.AddTransient<ISysCodeSerialBll, SysCodeSerialBll>();
            service.AddTransient<ILogEventBll, LogEventBll>();
            service.AddTransient<ILogLoginBll, LogLoginBll>();
            service.AddTransient<IExcelAssistant, EPPlusExcel>();
            service.AddTransient<ITbCompanyBll, TbCompanyBll>();
            service.AddTransient<ITbFileBll, TbFileBll>();
            service.AddTransient<ITbFilePredeleteBll, TbFilePredeleteBll>();
            service.AddTransient<ITbFileLogBll, TbFileLogBll>();
            Dal.DLRegister.Regist(service);
        }
    }
}
